<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本插值及指令</title>
    <script src="../vue.global.js"></script>
    <style>
        .red{
            color:red;
        }
    </style>
</head>
<body>

<div id="App">
    counter:<span v-once :class="className">{{counter}}</span>
    <br/>
    {{raw}}
    <div v-html="raw" v-bind:class="className"></div>
    {{true?"我草":"我去"}}
    {{'i am chinese'.split('')}}
</div>


<script>



    const App = {

        data(){
            return {
                counter:100,
                raw:"<div>vue3.x</div>",
                className:"red"
            }
        }
    };

    const vm = Vue.createApp(App).mount("#App")
    vm.counter=999;
    console.log(vm);

</script>
</body>
</html>